#!/bin/bash

export TBOX_BUILD_TOP_DIR=$(readlink -f $(dirname $0))
echo "top dir:$TBOX_BUILD_TOP_DIR"

rm -rf ./build
mkdir build
cd build
cmake -DBUILD_TEST=ON ..
make -j8

# cmake -DBUILD_TEST=ON -DBUILD_GTEST=ON ..
# ./gtest/collect_gtest
# cmake --build . --target lcov

echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${TBOX_BUILD_TOP_DIR}/3rdparty/dds/lib/x86_linux/"



